import React from 'react'
import { findTitles } from '@/assets/ts/config' 
import { useRouter } from '@/utils/routeTo'

function FindMusic() {
    const {routeTo} = useRouter()

  return (
    <div>
        <ul>
            {
                findTitles.map((item,index)=>{
                    return(
                        <li key={index} onClick={() => routeTo(item.path)}>
                            <span style={{paddingLeft:'10px'}}>{item.title}</span>
                        </li>
                    )
                })
            }
        </ul>
    </div>
  )
}

export default React.memo(FindMusic)